package cn.joechow.quickcode.support.model;

import java.util.List;

/**
 * Created by JoeChow
 * on 2017/1/23.
 */
public class FieldModel {

    private List<String> annotationList;

    private String limit = "public";

    private boolean isStatic = false;

    private boolean isFinal = false;

    private String className;

    private String name;

    private boolean isSetter = true;

    private boolean isGetter = true;

    FieldModel(String className,String name){
        this.className = className;
        this.name = name;
    }

    public FieldModel(String limit, String className, String name) {
        this.limit = limit;
        this.className = className;
        this.name = name;
    }


    public List<String> getAnnotationList() {
        return annotationList;
    }

    public FieldModel setAnnotationList(List<String> annotationList) {
        this.annotationList = annotationList;
        return this;
    }

    public String getLimit() {
        return limit;
    }

    public FieldModel setLimit(String limit) {
        this.limit = limit;
        return this;
    }

    public boolean isStatic() {
        return isStatic;
    }

    public FieldModel setStatic(boolean aStatic) {
        isStatic = aStatic;
        return this;
    }

    public boolean isFinal() {
        return isFinal;
    }

    public FieldModel setFinal(boolean aFinal) {
        isFinal = aFinal;
        return this;
    }

    public String getClassName() {
        return className;
    }

    public FieldModel setClassName(String className) {
        this.className = className;
        return this;
    }

    public String getName() {
        return name;
    }

    public FieldModel setName(String name) {
        this.name = name;
        return this;
    }

    public boolean isSetter() {
        return isSetter;
    }

    public FieldModel setSetter(boolean setter) {
        isSetter = setter;
        return this;
    }

    public boolean isGetter() {
        return isGetter;
    }

    public FieldModel setGetter(boolean getter) {
        isGetter = getter;
        return this;
    }
}
